#include <iostream>
using namespace std;

class date {
	public:
		date();
		date(int mo, int yr);
		date(int mo, int d, int yr);

		~date();

		void setMonth(int mo);
		void setDay(int d);
		void setYear(int yr);
		void printDate();

		int getMonth();
		int getDay();
		int getYear();
	private:
		int month;
		int day;
		int year;
};

date::date() {
	month = 1;
	day = 1;
	year = 1970;
}

date::~date() {
}

date::date(int mo, int yr) {
	month = mo;
	year = yr;
}

date::date(int mo, int d, int yr) {
	month = mo;
	day = d;
	year = yr;
}

void date::setMonth(int mo) {
	month = mo;
}

void date::setYear(int yr) {
	year = yr;
}

void date::setDay(int d) {
	day = d;
}

void date::printDate() {
	cout << month << "/" << day << "/" << year << endl;
}

int date::getMonth() {
	return month;
}

int date::getDay() {
	return day;
}

int date::getYear() {
	return year;
}

int main() {
	date testdate;

	testdate.setDay(19);
	testdate.setMonth(11);
	testdate.setYear(2009);

	cout << "Date class test" << endl;
	cout << "The date is:" << endl;
	cout << "Month: " << testdate.getMonth() << endl;
	cout << "Day: " << testdate.getDay() << endl;
	cout << "Year: " << testdate.getYear() << endl;
	testdate.printDate();

	cin.get();
}
